Developer Documentation

QuickTime 4 API Documentation

QuickTime 4 Reference

| Previous | Chapter Contents | Chapter Top | Next |

Creating a Tween Track

To create a tween track, you must:

The sample code shown in this section creates a tween sample that interpolates a short integer from 255 to 0. The tween media is attached to the sound track of a QuickTime movie to modify the sound track's volume. Thus it creates a volume fadeout using the tween track. The data type for the tween component is kTweenTypeShort.

The sample code shown in Listing 1 creates a new track ( t ) to be used as the tween track and new tween media (type TweenMediaType ).

Creating a tween track and tween media

Creating a tween sample

Adding the tween sample to the media and the media to the track

Creating a link between the tween track and a receiving track

Binding a tween entry to its receiving track


© 1999 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |